﻿@{
    ViewBag.Title = "会员加盟";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model JStore.Web.Controllers.Users.ViewModels.RegisterModel 
<link href="../../Scripts/jquery-validation-engine/css/template.css" rel="stylesheet"
    type="text/css" />
<link href="../../Scripts/jquery-validation-engine/css/validationEngine.jquery.css"
    rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/jquery.validationEngine.js"
    type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/languages/jquery.validationEngine-zh_CN.js"
    type="text/javascript"></script>
<script src="../../Scripts/Register.js" type="text/javascript"></script>
<style type="text/css">
    #pageloading
    {
        position: absolute;
        left: 0px;
        top: 0px;
        background: #FFFFFF url('../../Scripts/jquery-ligerUI-1.1.9/Images/loading.gif') no-repeat center;
        width: 100%;
        height: 100%;
        z-index: 10000;
        filter: alpha(opacity=85);
        opacity: 0.85;
        display: none;
    }
</style>
<div class="right_box_card">
    <ul>
        <li class="right_box_card1"><a href="#">会员注册</a></li>
    </ul>
</div>
<div id="pageloading">
</div>
@using (Html.BeginForm("Register", "Users", FormMethod.Post, new { @class = "formular", id = "form1" }))
{
    <table class="enter_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.CardClass)
            </td>
            <td class="entry_tab_td2">
                @Html.DropDownListFor(c => c.CardClass, ViewData["CardClassList"] as List<SelectListItem>, new { @class = "validate[required] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.CardType)
            </td>
            <td class="entry_tab_td2">
                @Html.DropDownListFor(c => c.CardType, new List<SelectListItem>(), new { @class = "validate[required] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.JoinMoney)
            </td>
            <td class="entry_tab_td2">
                @Html.HiddenFor(c => c.JoinMoney)
                <label class="text-input" style="color: red; width: 260px; font-weight: bold" id="lblJoinMoney">
                </label>
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                购物折扣：
            </td>
            <td class="entry_tab_td2">
                <label class="text-input" style="color: red; width: 260px; font-weight: bold" id="lblSaleRate">
                </label>
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.RealMoney)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.RealMoney, new { @class = "validate[required,min[1],custom[integer],funcCall[checkRealMoney]] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.TjUserName)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.TjUserName, new { @class = "validate[required,funcCall[CanTj]] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.JdUserName)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.JdUserName, new { @class = "validate[required,funcCall[CanJd]] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.JdSort)
            </td>
            <td class="entry_tab_td2">
                @Html.DropDownListFor(c => c.JdSort, new List<SelectListItem>(), new { @class = "validate[required] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.Password)
            </td>
            <td class="entry_tab_td2">
                @Html.PasswordFor(c => c.Password, new { @class = "validate[required,minSize[6]] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.ConfirmPassword)
            </td>
            <td class="entry_tab_td2">
                @Html.PasswordFor(c => c.ConfirmPassword, new { @class = "validate[required,equals[Password]] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.Name)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.Name, new { @class = "validate[required] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.Phone)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.Phone, new { @class = "validate[required] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.Mobile)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.Mobile, new { @class = "validate[required] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.Address)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.Address, new { @class = "validate[required] text-input" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
            </td>
            <td class="entry_tab_td2">
                <input type="button" value="立即注册" id="btnSubmit" class="submit" style="float: left;" />
            </td>
        </tr>
    </table> 
}
